import plugin from "../../lib/plugins/plugin.js";
import { segment } from "oicq"; 

export class Book_of_Answers extends plugin {
  constructor() {
    super({
      name: "答案之书",
      dsc: "答案之书",
      event: "message",
      priority: 4999,
      rule: [
        {
          reg: "^#*答案之书(.*)$",
          fnc: "Book_of_Answers",
        },
      ],
    });
  }
  async Book_of_Answers(e) {
    try {
      let answer = getAnswer();
    //   logger.warn(answer);
      e.reply([answer.zh, "\n", answer.en], true);
    } catch (error) {
      logger.warn(error);
      let msg = [
        "给答案之书整不会了",
        segment.image(
          "https://c2cpicdw.qpic.cn/offpic_new/1761869682//1761869682-4172686859-71B1FBA58A05D2C62802B570F00A4CFB/0?term=3"
        ),
      ];
      e.reply(msg, true);
    }
    return true;
  }
}
function getAnswer(e) {
  let data = [
    {
      zh: "别太赶了。",
      en: "DON'T BE IN SUCH A HURRY.",
    },
    {
      zh: "别想了。",
      en: "FORGET IT.",
    },
    {
      zh: "不。",
      en: "NO, NO.",
    },
    {
      zh: "不然呢？",
      en: "OR WHAT?",
    },
    {
      zh: "不要抱期望。",
      en: "DON'T EXPECT.",
    },
    {
      zh: "要求不要太高。",
      en: "DON'T ASK TOO MUCH.",
    },
    {
      zh: "这是必然的，不要抗拒。",
      en: "IT'S INEVITABLE. DON'T RESIST.",
    },
    {
      zh: "不要浪费精力。",
      en: "DON'T WASTE YOUR ENERGY.",
    },
    {
      zh: "不要浪费你的时间了。",
      en: "DON'T WASTE YOUR TIME.",
    },
    {
      zh: "不要做的过火了。",
      en: "DON'T GO TOO FAR.",
    },
    {
      zh: "不用担心。",
      en: "NEVER MIND.",
    },
    {
      zh: "车到山前必有路。",
      en: "THE CAR WILL FIND ITS WAY ROUND THE HILL WHEN IT GETS THERE.",
    },
    {
      zh: "答案就在你身边。",
      en: "THE ANSWER IS RIGHT NEXT TO YOU.",
    },
    {
      zh: "大胆一点。",
      en: "BE BOLD.",
    },
    {
      zh: "大方一点。",
      en: "BE GENEROUS.",
    },
    {
      zh: "等等。",
      en: "WAIT.",
    },
    {
      zh: "放轻松，慢点来。",
      en: "TAKE IT EASY. SLOW DOWN.",
    },
    {
      zh: "管他呢。",
      en: "WHATEVER.",
    },
    {
      zh: "毫无疑问。",
      en: "WITHOUT DOUBT.",
    },
    {
      zh: "好运会降临。",
      en: "GOOD LUCK WILL COME.",
    },
    {
      zh: "忽略了一件显而易见的事。",
      en: "OVERLOOKED ONE OBVIOUS THING.",
    },
    {
      zh: "换个角度想想。",
      en: "THINK ABOUT IT ANOTHER WAY.",
    },
    {
      zh: "会付出代价。",
      en: "WILL PAY THE PRICE.",
    },
    {
      zh: "会感到庆幸。",
      en: "YOU'LL FEEL LUCKY.",
    },
    {
      zh: "会很不顺利。",
      en: "IT'S NOT GONNA GO WELL.",
    },
    {
      zh: "会很顺利。",
      en: "IT'S GONNA BE FINE.",
    },
    {
      zh: "会后悔的。",
      en: "YOU'LL REGRET IT.",
    },
    {
      zh: "会失去自我。",
      en: "YOU LOSE YOURSELF.",
    },
    {
      zh: "会特别顺利。",
      en: "IT'S GOING TO BE GREAT.",
    },
    {
      zh: "继续前进。",
      en: "MOVE ON.",
    },
    {
      zh: "结果可能令人惊讶。",
      en: "THE RESULTS MAY BE SURPRISING.",
    },
    {
      zh: "绝对不。",
      en: "ABSOLUTELY NOT.",
    },
    {
      zh: "肯定的。",
      en: "THAT'S FOR SURE.",
    },
    {
      zh: "没错",
      en: "THAT'S RIGHT",
    },
    {
      zh: "木已成舟。",
      en: "THE DIE IS CAST.",
    },
    {
      zh: "你必须解决一些相关的问题。",
      en: "YOU MUST SOLVE SOME RELATED PROBLEMS.",
    },
    {
      zh: "不会后悔的。",
      en: "I WON'T REGRET IT.",
    },
    {
      zh: "不会失望的。",
      en: "YOU WON'T BE DISAPPOINTED.",
    },
    {
      zh: "得真的努力一下。",
      en: "WE HAVE TO MAKE A REAL EFFORT.",
    },
    {
      zh: "还有别的选择。",
      en: "THERE ARE OTHER OPTIONS.",
    },
    {
      zh: "你将取得成功。",
      en: "YOU WILL SUCCEED.",
    },
    {
      zh: "你说了算。",
      en: "IT'S UP TO YOU.",
    },
    {
      zh: "你心里已经有答案了。",
      en: "YOU ALREADY HAVE THE ANSWER IN YOUR HEART.",
    },
    {
      zh: "需要合作。",
      en: "WE NEED COOPERATION.",
    },
    {
      zh: "需要冒险。",
      en: "YOU NEED TO TAKE RISKS.",
    },
    {
      zh: "要主动。",
      en: "TAKE THE INITIATIVE.",
    },
    {
      zh: "你在开玩笑吗？",
      en: "YOU ARE KIDDING?",
    },
    {
      zh: "你做什么都没用。",
      en: "THERE'S NOTHING YOU CAN DO.",
    },
    {
      zh: "奇迹将会降临。",
      en: "A MIRACLE WILL COME.",
    },
    {
      zh: "千万别信。",
      en: "DON'T BELIEVE IT.",
    },
    {
      zh: "千万不能失败。",
      en: "NEVER FAIL.",
    },
    {
      zh: "全力以赴。",
      en: "GO ALL OUT.",
    },
    {
      zh: "认清现实吧。",
      en: "RECOGNIZE THE REALITY.",
    },
    {
      zh: "三思而后行。",
      en: "THINK TWICE BEFORE YOU DO.",
    },
    {
      zh: "尚待时日。",
      en: "IT WILL TAKE TIME.",
    },
    {
      zh: "省点力气吧。",
      en: "SAVE YOUR BREATH.",
    },
    {
      zh: "时机未到。",
      en: "IT'S NOT THE RIGHT TIME.",
    },
    {
      zh: "听听别人怎么说。",
      en: "LISTEN TO WHAT OTHER PEOPLE HAVE TO SAY.",
    },
    {
      zh: "听听专家的意见。",
      en: "LISTEN TO THE EXPERT'S OPINION.",
    },
    {
      zh: "万一错过，就没有这个机会了。",
      en: "IN CASE WE MISS IT, WE WON'T HAVE THE CHANCE.",
    },
    {
      zh: "为什么不呢？",
      en: "WHY NOT?",
    },
    {
      zh: "问问你的亲人",
      en: "ASK YOUR RELATIVES.",
    },
    {
      zh: "问问自己为什么要这么干。",
      en: "ASK YOURSELF WHY YOU DID IT.",
    },
    {
      zh: "先做点别的。",
      en: "DO SOMETHING ELSE FIRST.",
    },
    {
      zh: "现在还说不清。",
      en: "I DON'T KNOW YET.",
    },
    {
      zh: "现在你可以。",
      en: "NOW YOU CAN.",
    },
    {
      zh: "相信你的直觉。",
      en: "TRUST YOUR INSTINCTS.",
    },
    {
      zh: "相信你最初的想法。",
      en: "BELIEVE WHAT YOU THOUGHT IN THE FIRST PLACE.",
    },
    {
      zh: "想得美。",
      en: "DAYDREAMING.",
    },
    {
      zh: "想想还有没有机会。",
      en: "THINK ABOUT WHETHER THERE IS STILL A CHANCE.",
    },
    {
      zh: "休息一下就好了。",
      en: "JUST TAKE A BREAK.",
    },
    {
      zh: "学会妥协。",
      en: "LEARN TO COMPROMISE.",
    },
    {
      zh: "眼光长远一点。",
      en: "TAKE A LONG VIEW.",
    },
    {
      zh: "要变通。",
      en: "BE FLEXIBLE.",
    },
    {
      zh: "要有点耐心。",
      en: "BE PATIENT.",
    },
    {
      zh: "要知足。",
      en: "BE CONTENT.",
    },
    {
      zh: "要抓住问题的关键。",
      en: "WE SHOULD GRASP THE CRUX OF THE PROBLEM.",
    },
    {
      zh: "一定会有好结果的。",
      en: "IT WILL COME TO A GOOD END.",
    },
    {
      zh: "一笑了之。",
      en: "LAUGH AWAY.",
    },
    {
      zh: "以后再说。",
      en: "WE'LL TALK ABOUT IT LATER.",
    },
    {
      zh: "用尽一切办法去努力。",
      en: "TRY EVERY MEANS YOU CAN.",
    },
    {
      zh: "有。",
      en: "YES.",
    },
    {
      zh: "有可能。",
      en: "IT'S POSSIBLE.",
    },
    {
      zh: "仔细想想再说。",
      en: "THINK ABOUT IT.",
    },
    {
      zh: "再等等看。",
      en: "JUST WAIT AND SEE.",
    },
    {
      zh: "障碍重重。",
      en: "THERE ARE MANY OBSTACLES.",
    },
    {
      zh: "这辈子都不可能。",
      en: "NOT FOR THE REST OF MY LIFE.",
    },
    {
      zh: "这不可取。",
      en: "IT'S NOT ADVISABLE.",
    },
    {
      zh: "这不切实际。",
      en: "IT'S IMPRACTICAL.",
    },
    {
      zh: "这不值得努力。",
      en: "IT'S NOT WORTH THE EFFORT.",
    },
    {
      zh: "这会影响你的形象。",
      en: "IT WILL AFFECT YOUR IMAGE.",
    },
    {
      zh: "这件事会很麻烦。",
      en: "THIS WILL BE TROUBLESOME.",
    },
    {
      zh: "这件事你说了不算。",
      en: "IT'S NOT UP TO YOU.",
    },
    {
      zh: "这没有什么意义。",
      en: "IT DOESN'T MAKE ANY SENSE.",
    },
    {
      zh: "这取决于你的行动。",
      en: "IT DEPENDS ON YOUR ACTIONS.",
    },
    {
      zh: "这是肯定的。",
      en: "THAT'S FOR SURE.",
    },
    {
      zh: "没法保证。",
      en: "THERE'S NO GUARANTEE.",
    },
    {
      zh: "无法预测。",
      en: "UNPREDICTABLE.",
    },
    {
      zh: "这是在浪费金钱。",
      en: "THIS IS A WASTE OF MONEY.",
    },
    {
      zh: "没什么好结果。",
      en: "IT DIDN'T END WELL.",
    },
    {
      zh: "值得奋斗。",
      en: "IT'S WORTH FIGHTING FOR.",
    },
    {
      zh: "这种事不要告诉别人。",
      en: "DON'T TELL ANYONE ABOUT THIS.",
    },
    {
      zh: "只有一次机会。",
      en: "THERE'S ONLY ONE CHANCE.",
    },
    {
      zh: "众所周知。",
      en: "AS EVERYONE KNOWS.",
    },
    {
      zh: "重新想想。",
      en: "THINK AGAIN.",
    },
    {
      zh: "注意细节。",
      en: "ATTENTION TO DETAIL.",
    },
    {
      zh: "做最坏的打算。",
      en: "PREPARE FOR THE WORST.",
    },
    {
      zh: "不要纠结了。",
      en: "DON'T WORRY ABOUT IT.",
    },
    {
      zh: "毫无道理。",
      en: "IT DOESN'T MAKE ANY SENSE.",
    },
    {
      zh: "结果会让你惊喜。",
      en: "THE RESULT WILL SURPRISE YOU.",
    },
    {
      zh: "这不是你想要的。",
      en: "THIS IS NOT WHAT YOU WANT.",
    },
    {
      zh: "寻找机会就行。",
      en: "JUST LOOK FOR OPPORTUNITIES.",
    },
    {
      zh: "不要自作多情。",
      en: "DON'T FLATTER YOURSELF.",
    },
    {
      zh: "最后一次机会。",
      en: "LAST CHANCE.",
    },
    {
      zh: "顺其自然。",
      en: "LET IT BE.",
    },
    {
      zh: "学会释然。",
      en: "LEARN TO LET GO.",
    },
    {
      zh: "别瞎折腾了。",
      en: "STOP MESSING AROUND.",
    },
    {
      zh: "再过几年。",
      en: "IN A FEW YEARS.",
    },
    {
      zh: "不要忽视自己的力量。",
      en: "DON'T IGNORE YOUR STRENGTH.",
    },
    {
      zh: "尽在掌握之中。",
      en: "IT'S ALL UNDER CONTROL.",
    },
    {
      zh: "地点不合适。",
      en: "IT'S NOT THE RIGHT PLACE.",
    },
    {
      zh: "不作死就不会死。",
      en: "NO ZUO NO DIE.",
    },
    {
      zh: "当局者迷。",
      en: "THE PLAYER CAN'T SEE MOST OF THE GAME.",
    },
    {
      zh: "另择吉日。",
      en: "CHOOSE ANOTHER AUSPICIOUS DAY.",
    },
    {
      zh: "时间会证明一切。",
      en: "TIME WILL TELL.",
    },
    {
      zh: "并非永恒。",
      en: "NOT FOREVER.",
    },
    {
      zh: "倾听你内心的声音。",
      en: "LISTEN TO YOUR INNER VOICE.",
    },
    {
      zh: "如你所愿。",
      en: "AS YOU WISH.",
    },
    {
      zh: "遇上方知有。",
      en: "YOU DON'T KNOW IT UNTIL YOU MEET IT.",
    },
    {
      zh: "不值得。",
      en: "UNWORTHY.",
    },
    {
      zh: "见好就收。",
      en: "STOP AS SOON AS YOU SEE IT.",
    },
    {
      zh: "你猜。",
      en: "GUESS WHAT.",
    },
    {
      zh: "时机尚不成熟。",
      en: "THE TIME IS NOT YET RIPE.",
    },
    {
      zh: "这难以置信。",
      en: "THIS IS UNBELIEVABLE.",
    },
    {
      zh: "与你无关。",
      en: "NONE OF YOUR BUSINESS.",
    },
    {
      zh: "放手。",
      en: "LET GO.",
    },
    {
      zh: "拭目以待。",
      en: "RUB ONE'S EYES AND WAIT.",
    },
    {
      zh: "只想不努力是没用的!!加油…。",
      en: "IT'S NO USE TRYING NOT TO WORK HARD! COME ON... NO, NO, NO.",
    },
    {
      zh: "非常冒险...机会不大。",
      en: "IT'S VERY RISKY. IT'S A LONG SHOT.",
    },
    {
      zh: "接受别人的意见会有助力。",
      en: "IT HELPS TO ACCEPT OTHER PEOPLE'S OPINIONS.",
    },
    {
      zh: "办何自己不肯妥协，先问一下自已的能力。",
      en: "IF YOU REFUSE TO COMPROMISE, ASK YOUR ABILITY FIRST.",
    },
    {
      zh: "毫无疑问。",
      en: "WITHOUT DOUBT.",
    },
    {
      zh: "仍然难以估计。",
      en: "IT'S STILL HARD TO ESTIMATE.",
    },
    {
      zh: "绝对不可。",
      en: "ABSOLUTELY NOT.",
    },
    {
      zh: "耐心等待。",
      en: "WAIT PATIENTLY.",
    },
    {
      zh: "为何你还相信自己的幻想。",
      en: "WHY DO YOU STILL BELIEVE IN YOUR FANTASIES.",
    },
    {
      zh: "不要表态。",
      en: "DON'T STATE YOUR POSITION.",
    },
    {
      zh: "可能会造成震惊事件。",
      en: "IT COULD BE A SHOCK.",
    },
    {
      zh: "答案不是你所想但又会成功。",
      en: "THE ANSWER IS NOT WHAT YOU THINK, BUT IT WILL SUCCEED.",
    },
    {
      zh: "你需要尝试接受。",
      en: "YOU NEED TO TRY TO ACCEPT IT.",
    },
    {
      zh: "太疑神疑鬼了、加强自信吧。",
      en: "TOO PARANOID, STRENGTHEN YOUR SELF-CONFIDENCE.",
    },
    {
      zh: "是你心思误放在其它地方，影响运程。",
      en: "IT IS YOUR MIND THAT IS MISPLACED IN OTHER PLACES, AFFECTING YOUR LUCK.",
    },
    {
      zh: "别心急。",
      en: "DON'T BE HASTY.",
    },
    {
      zh: "很大机会出现另一局面。",
      en: "THERE IS A GOOD CHANCE OF ANOTHER SITUATION.",
    },
    {
      zh: "静观其变。",
      en: "WAIT AND SEE WHAT HAPPENS.",
    },
    {
      zh: "现在不是最佳时机。",
      en: "NOW IS NOT THE BEST TIME.",
    },
    {
      zh: "保持警愓、并非如你所想。",
      en: "KEEP YOUR GUARD UP. IT'S NOT WHAT YOU THINK.",
    },
    {
      zh: "听一下别人劝告吧。",
      en: "LISTEN TO OTHER PEOPLE'S ADVICE.",
    },
    {
      zh: "现在没法要求太多。",
      en: "I CAN'T ASK TOO MUCH RIGHT NOW.",
    },
    {
      zh: "用轻松的态度面对。",
      en: "FACE IT WITH A RELAXED ATTITUDE.",
    },
    {
      zh: "事与愿违，须多留意自己情绪。",
      en: "THINGS GO AGAINST YOUR WISHES, SO YOU SHOULD PAY MORE ATTENTION TO YOUR EMOTIONS.",
    },
    {
      zh: "要节制了，记得见好就收。",
      en: "WHEN IT COMES TO ABSTINENCE, REMEMBER TO STOP AS SOON AS YOU ARE READY.",
    },
    {
      zh: "不在你控制范围以内。",
      en: "IT'S OUT OF YOUR CONTROL.",
    },
    {
      zh: "小心!!",
      en: "LOOK OUT!",
    },
    {
      zh: "继续走你的路，问题当没有事情发生过吧。",
      en: "KEEP GOING YOUR WAY, AND THE PROBLEM IS THAT NOTHING HAS EVER HAPPENED.",
    },
    {
      zh: "用感觉去行动吧。",
      en: "ACT WITH YOUR FEELINGS.",
    },
    {
      zh: "别被自己情绪影响。",
      en: "DON'T BE INFLUENCED BY YOUR EMOTIONS.",
    },
    {
      zh: "好好把握啦 !",
      en: "TAKE ADVANTAGE OF IT!",
    },
    {
      zh: "可按自己的目标进行计划。",
      en: "YOU CAN PLAN ACCORDING TO YOUR OWN GOALS.",
    },
    {
      zh: "转移目标吧。",
      en: "SHIFT THE TARGET.",
    },
    {
      zh: "多留意身边事物、另有出路。",
      en: "PAY MORE ATTENTION TO THE THINGS AROUND YOU AND FIND ANOTHER WAY OUT.",
    },
    {
      zh: "凡事都有两面，一时不爽未必是坏事。",
      en: "THERE ARE TWO SIDES TO EVERYTHING, AND BEING UNHAPPY FOR A MOMENT IS NOT NECESSARILY A BAD THING.",
    },
    {
      zh: "不妨改变一下想法。",
      en: "YOU MIGHT AS WELL CHANGE YOUR MIND.",
    },
    {
      zh: "重新想一下是否真正对你最重要吧。",
      en: "RETHINK WHETHER IT IS REALLY THE MOST IMPORTANT TO YOU.",
    },
    {
      zh: "记得不要太急进。",
      en: "REMEMBER NOT TO BE TOO AGGRESSIVE.",
    },
    {
      zh: "别再浪费时间。",
      en: "DON'T WASTE ANY MORE TIME.",
    },
    {
      zh: "辛苦的付出与收获不成正比，但切忌意气用事。",
      en: "HARD WORK IS NOT IN DIRECT PROPORTION TO GAIN, BUT DON'T BE EMOTIONAL.",
    },
    {
      zh: "结果如何你都不会忘记这件事。",
      en: "YOU WON'T FORGET IT IN THE END.",
    },
    {
      zh: "问题将会解决。",
      en: "THE PROBLEM WILL BE SOLVED.",
    },
    {
      zh: "将会受到一些挫折，要积极面对。",
      en: "THERE WILL BE SOME SETBACKS, SO WE SHOULD FACE THEM POSITIVELY.",
    },
    {
      zh: "有意外困扰，停滞不前，情绪会受到动摇。",
      en: "IF YOU HAVE UNEXPECTED TROUBLES, YOU WILL STAGNATE, AND YOUR EMOTIONS WILL BE SHAKEN.",
    },
    {
      zh: "不要心存侥幸，不付出又那会有收获呢 ?",
      en: "DON'T TAKE ANY CHANCES. IF YOU DON'T PAY, WHAT WILL YOU GET?",
    },
    {
      zh: "出现了最佳时机，记着要踏实去干。",
      en: "WHEN THE BEST TIME COMES, REMEMBER TO DO IT IN A DOWN-TO-EARTH MANNER.",
    },
    {
      zh: "危机四伏，较为冲击动荡，需要过关斩将。",
      en: "CRISIS IS EVERYWHERE, THE IMPACT IS MORE TURBULENT, AND WE NEED TO GET THROUGH THE CUSTOMS.",
    },
    {
      zh: "尝试去想一下其它更多的可能性。",
      en: "TRY TO THINK OF OTHER MORE POSSIBILITIES.",
    },
    {
      zh: "迟一点才去解决。",
      en: "WE'LL DEAL WITH IT LATER.",
    },
    {
      zh: "不要自钻牛角尖，包容较挑剔来得开心。",
      en: "DON'T MAKE A FOOL OF YOURSELF. IT'S FUN TO BE TOLERANT AND PICKY.",
    },
    {
      zh: "小心外来的引诱，不要意气用事啊 !",
      en: "BEWARE OF FOREIGN TEMPTATIONS, DON'T GET EMOTIONAL!",
    },
    {
      zh: "接受改变，面对现实啦。",
      en: "ACCEPT THE CHANGE AND FACE THE REALITY.",
    },
    {
      zh: "困扰你的问题可望得到解决。",
      en: "THE PROBLEM THAT BOTHERS YOU IS EXPECTED TO BE SOLVED.",
    },
    {
      zh: "机会不会短期内再出现。",
      en: "THE OPPORTUNITY WILL NOT HAPPEN AGAIN ANY TIME SOON.",
    },
    {
      zh: "再想清楚你要的是什么。",
      en: "AND FIGURE OUT WHAT YOU WANT.",
    },
    {
      zh: "等待一个更好机会。",
      en: "WAITING FOR A BETTER CHANCE.",
    },
    {
      zh: "你需要付出代价。",
      en: "YOU HAVE TO PAY THE PRICE.",
    },
    {
      zh: "无论如何你都会继续去做 !",
      en: "YOU WILL CONTINUE TO DO IT ANYWAY!",
    },
    {
      zh: "你需要放弃其它东西才成事。",
      en: "YOU NEED TO GIVE UP SOMETHING ELSE TO GET IT DONE.",
    },
    {
      zh: "可能会好难，但值得的。",
      en: "IT MIGHT BE HARD, BUT IT'S WORTH IT.",
    },
  ];
  return data[Math.round(Math.random() * (data.length - 1))];
}
